//
//  CMainViewController.m
//  CAVPlayer
//
//  Created by hccheng on 15/11/11.
//  Copyright © 2015年 Tencent. All rights reserved.
//

#import "CMainViewController.h"
#import "CAudioViewController.h"
#import "CVideoViewController.h"
#import "CDivViewController.h"

@implementation CMainViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        
        CAudioViewController *AudioViewController = [[CAudioViewController alloc] init];
        UINavigationController *AudioViewControllerNav = [[UINavigationController alloc] initWithRootViewController:AudioViewController];
        AudioViewControllerNav.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Audio" image:[UIImage new] selectedImage:[UIImage new]];
        
        CVideoViewController *VideoViewController = [[CVideoViewController alloc] init];
        UINavigationController *VideoViewControllerNav = [[UINavigationController alloc] initWithRootViewController:VideoViewController];
        VideoViewControllerNav.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Video" image:[UIImage new] selectedImage:[UIImage new]];
        
        CDivViewController *DivViewController = [[CDivViewController alloc] init];
        UINavigationController *DivViewControllerNav = [[UINavigationController alloc] initWithRootViewController:DivViewController];
        DivViewControllerNav.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Div" image:[UIImage new] selectedImage:[UIImage new]];
        
        self.viewControllers = @[AudioViewControllerNav,VideoViewControllerNav,DivViewControllerNav];
    }
    return self;
}

- (void)loadView{
    [super loadView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
